<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'coffeerecommend-form',
	'enableAjaxValidation'=>false,
)); ?>
	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ownerName'); ?>
		<?php echo $form->textField($model,'ownerName',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'ownerName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'street'); ?>
		<?php echo $form->textField($model,'street',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'street'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'suburb'); ?>
		<?php echo $form->textField($model,'suburb',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'suburb'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'state'); ?>
		<?php echo $form->textField($model,'state',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'state'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'postcode'); ?>
		<?php echo $form->textField($model,'postcode',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'postcode'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'country'); ?>
		<?php echo $form->textField($model,'country',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'country'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'website'); ?>
		<?php echo $form->textField($model,'website',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'website'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phone'); ?>
		<?php echo $form->textField($model,'phone',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'phone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'baristaNames'); ?>
		<?php echo $form->textField($model,'baristaNames',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'baristaNames'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'espressoMachine'); ?>
		<?php echo $form->textField($model,'espressoMachine',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'espressoMachine'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'beansForSale'); ?>
		<?php echo $form->textField($model,'beansForSale'); ?>
		<?php echo $form->error($model,'beansForSale'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'internetAccess'); ?>
		<?php echo $form->textField($model,'internetAccess'); ?>
		<?php echo $form->error($model,'internetAccess'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'roastingOnSite'); ?>
		<?php echo $form->textField($model,'roastingOnSite'); ?>
		<?php echo $form->error($model,'roastingOnSite'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'coffeeBrand'); ?>
		<?php echo $form->textField($model,'coffeeBrand',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'coffeeBrand'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'comment'); ?>
		<?php echo $form->textArea($model,'comment',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'comment'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fromIp'); ?>
		<?php echo $form->textField($model,'fromIp',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'fromIp'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'date'); ?>
		<?php echo $form->textField($model,'date'); ?>
		<?php echo $form->error($model,'date'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->textField($model,'status'); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'shopId'); ?>
		<?php echo $form->textField($model,'shopId'); ?>
		<?php echo $form->error($model,'shopId'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->